<?php
namespace ImiApp\ApiServer\Model;

use Imi\Model\RedisModel;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;
use Imi\Model\Annotation\RedisEntity;

/**
 * @Entity
 * @RedisEntity
 */
class RedisTestModel extends RedisModel
{
    /**
     * @Column(name="name")
     *
     * @var string
     */
    public $name;

    /**
     * Get the value of name
     *
     * @return string
     */ 
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set the value of name
     *
     * @param string $name
     *
     * @return self
     */ 
    public function setName(string $name)
    {
        $this->name = $name;

        return $this;
    }
}
